package com.atlyn.test;

public class goods {
	private int gid;
	private String gname;
	private int gnum;
	private int gprice;
	public goods() {
		super();
	}
	public goods(int gid, String gname, int gnum, int gprice) {
		super();
		this.gid = gid;
		this.gname = gname;
		this.gnum = gnum;
		this.gprice = gprice;
	}
	public int getGid() {
		return gid;
	}
	public void setGid(int gid) {
		this.gid = gid;
	}
	public String getGname() {
		return gname;
	}
	public void setGname(String gname) {
		this.gname = gname;
	}
	public int getGnum() {
		return gnum;
	}
	public void setGnum(int gnum) {
		this.gnum = gnum;
	}
	public int getGprice() {
		return gprice;
	}
	public void setGprice(int gprice) {
		this.gprice = gprice;
	}
	@Override
	public String toString() {
		return "[商品编号：" + gid + ", 商品名：" + gname + ", 库存：" + gnum + ", 价格：" + gprice + "]";
	}
	
}
